package com.ict.web.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ict.common.annotation.Excel;
import com.ict.web.controller.file.domain.YzqFile;
import com.ict.web.controller.file.dto.YzqFileDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 合同信息--刘杰对象 yzq_contract_information
 *
 * @author ruoyi
 * @date 2022-03-01
 */
@Data
@TableName("yzq_contract_information")
public class ContractInformation
{
    private static final long serialVersionUID = 1L;

    /** 合同id */
    @ApiModelProperty(value = "合同id")
    @TableId(value = "contract_id",type = IdType.ASSIGN_ID)
    private Long contractId;

    /** 合同名称 */
    @Excel(name = "合同名称")
    @ApiModelProperty(value = "合同名称")
    private String contractName;

    /** 合同编号 */
    @Excel(name = "合同编号")
    @ApiModelProperty(value = "合同编号")
    private String contractNo;

    /** 合同金额 */
    @Excel(name = "合同金额")
    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractAmount;

    /** 签约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "签约时间")
    @Excel(name = "签约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signingTime;

    /** 合同扫描件（有公章） */
    @Excel(name = "合同扫描件", readConverterExp = "有=公章")
    @ApiModelProperty(value = "合同扫描件（有公章）")
    private String scannedCopyOfContract;

    /** 合同扫描件（有公章） */
    @Excel(name = "合同扫描件", readConverterExp = "有=公章")
    @ApiModelProperty(value = "合同扫描件（有公章）文件")
    @TableField(exist = false)
    private YzqFile scannedCopyOfContractFile;


    /** 招标公告网址 */
    @Excel(name = "招标公告网址")
    @ApiModelProperty(value = "招标公告网址")
    private String tenderAnnouncementWebsite;

    /** 招标公告文件Id */
    @Excel(name = "招标公告文件Id")
    @ApiModelProperty(value = "招标公告文件Id")
    private String tenderAnnouncementFileId;

    /** 招标公告文件 */
    @Excel(name = "招标公告文件")
    @ApiModelProperty(value = "招标公告文件")
    @TableField(exist = false)
    private YzqFile tenderAnnouncementFile;

    /** 中标公告网址 */
    @Excel(name = "中标公告网址")
    @ApiModelProperty(value = "中标公告网址")
    private String websiteOfBidWinningAnnouncement;

    /** 中标公告文件Id */
    @Excel(name = "中标公告文件Id")
    @ApiModelProperty(value = "中标公告文件Id")
    private String bidWinningAnnouncementFileId;

    /** 中标公告文件 */
    @Excel(name = "中标公告文件")
    @ApiModelProperty(value = "中标公告文件")
    @TableField(exist = false)
    private YzqFile bidWinningAnnouncementFile;

    /** 甲方 */
    @Excel(name = "甲方")
    @ApiModelProperty(value = "甲方")
    private String partyA;

    /** 甲方联系人 */
    @Excel(name = "甲方联系人")
    @ApiModelProperty(value = "甲方联系人")
    private String contactPersonA;

    /** 甲方联系电话 */
    @Excel(name = "甲方联系电话")
    @ApiModelProperty(value = "甲方联系电话")
    private String contactNumberA;

    /** 乙方 */
    @Excel(name = "乙方")
    @ApiModelProperty(value = "乙方")
    private String partyB;


    /** 乙方联系人 */
    @Excel(name = "乙方联系人")
    @ApiModelProperty(value = "乙方联系人")
    private String contactPersonB;

    /** 乙方联系电话 */
    @Excel(name = "乙方联系电话")
    @ApiModelProperty(value = "乙方联系电话")
    private String contactNumberB;

    /** 删除标识（0：正常，1：删除） */
    private String delFlag;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
